/*
 * ArticleCommentContract.java
 * business
 *
 * Created by chentao on 2017/4/21.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.main.discovery.comment;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.data.recyclertype.ArticleComment;
import com.yidiandao.business.interfaces.LoadMoreListener;
import com.yidiandao.business.interfaces.RefreshLayoutStateListener;
import com.yidiandao.business.interfaces.RefreshListener;

import java.util.List;

public interface ArticleCommentContract {

    interface Presenter extends BasePresenter {

        void loadComments(boolean isRefreshing);

        void likeComment(ArticleComment articleComment);

        void submitComment(String text);
    }

    interface View extends BaseView<Presenter>, RefreshLayoutStateListener, RefreshListener, LoadMoreListener {

        void showArticleCommentDialog();

        void setItems(List<?> items);

        void setRefreshComplete();

        void notifyDataSetChanged();
    }

}
